<div class="top_sellers">
    <div class="grid_center">
        <div class="white_title">
            <h1>Sản phẩm bán chạy</h1>
        </div>
        <div class="white_content">
            <ul id="most_bought_products" class="products_home">
                <?php foreach($most_bought_products as $product):?>
                <?php
                $image = is_null($product->image_name) ? 'no-image.png' : $product->image_name;
                $product_name = shorten_str($product->product_name, PRODUCT_NAME_MAXLENGTH_HOMEPAGE);
                $price = $product->price != 0 ? get_price_in_vnd($product->price) .  ' ₫' : get_price_in_vnd($product->price);
                $uri = get_base_url() . url_title($product->category, 'dash', TRUE) . '-c' . $product->categories_id . '/' . get_uri_product($product->product_name, $product->id);
                ?>
                <li>
                    <h4><a href="<?php echo $uri; ?>" class="link_hover" title="<?php echo $product->product_name; ?>"><?php echo $product_name;?></a></h4>
                    <a href="<?php echo $uri; ?>">
                        <img src="/images/products/thumbnails/<?php echo $image; ?>" title="<?php echo $product->product_name; ?>" alt="<?php echo $product->product_name; ?>"/>
                    </a>
                    <a href="<?php echo $uri; ?>" class="product_view_more green_hover" >Xem</a> <span><?php echo $price;?>
                    <?php if( 'Liên hệ' != $price && $product->unit) echo "<font style='font-size: 12px;'>/{$product->unit}</font>";?>
                    </span>
                </li>
                <?php endforeach;?>
            </ul>
        </div>
    </div>
</div>